<template>
	<view>
		<view class="contant">
			<!-- <view class="title" style="text-align: center; margin: 24rpx; font-size: 36rpx;font-weight: bold; ">
				{{item.title}}
			</view> -->
			<rich-text style="width: 750rpx;" :nodes="contont"></rich-text>
			<view style="display: flex;justify-content: center;">
				<view class="smollBox">
					<button class="btn" type="default" plain="true" open-type="contact">
						联系客服
					</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item: {},
				contont:""
			}
		},
		onLoad(options) {
			this.item = JSON.parse(decodeURIComponent(options.item));
			uni.setNavigationBarTitle({
				title: this.item.title
			})
			this.contont =this.item.content.replace('<img','<img style="width:100% !important;height:auto" ') 
		},

		methods: {

		}
	}
</script>

<style lang="scss">
	.smollBox {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 24rpx 0;
		// position: fixed;
		// bottom: 50rpx;

		.btn {
			width: 440rpx;
			height: 70rpx;
			border-radius: 35rpx;
			background: #FF6200 ;
			font-size: 26rpx;
			letter-spacing: 0px;
			color: #FFFFFF;
			display: flex;
			align-items: center;
			justify-content: center;
			box-shadow: 0;
			border: none;
		}
	}
</style>